<?php require_once('Connections/dis01.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_dis01, $dis01);
$query_ls_versiculo = "SELECT verso_id, verso_descricao FROM versiculos ORDER BY verso_id DESC";
$ls_versiculo = mysql_query($query_ls_versiculo, $dis01) or die(mysql_error());
$row_ls_versiculo = mysql_fetch_assoc($ls_versiculo);
$totalRows_ls_versiculo = mysql_num_rows($ls_versiculo);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Disseminando.com</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="css/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />	

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<link rel="stylesheet" href="css/slimbox2.css" type="text/css" media="screen" /> 
<script type="text/JavaScript" src="js/slimbox2.js"></script> 

</head>
<body id="subpage">

<div id="templatemo_wrapper">
	<div id="templatemo_header">
    	<div id="site_title"><img src="images/logo_projeto.png" width="296" height="76" /></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
            <ul>
                <li><a href="index.php">Home</a></li>
                <li><a href="videos.php" class="selected">Videos</a></li>                
                <li><a href="login.php">Login</a></li>
            </ul>
            <br style="clear: left" />
        </div> <!-- end of templatemo_menu -->
    </div> <!-- END of header -->
        
     <div id="templatemo_page_intro">
    	<h1>Versiculo do Dia</h1>
        <p><?php echo $row_ls_versiculo['verso_descricao']; ?></p>
        
    </div>
    
    
    <div id="templatemo_main">
    
    	<div class="col col_2">
        	<iframe width="300" height="180" src="//www.youtube.com/embed/uHnokhfj-ek?rel=0" frameborder="0" allowfullscreen></iframe><br />	
            
        </div>
        
        <div class="col col_2 no_mr">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/tbrPogIks0Y" frameborder="0" allowfullscreen></iframe><br />
        </div>
        
        <div class="clear"></div>
        
        <div class="col col_2">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/vXa67RVearg" frameborder="0" allowfullscreen></iframe><br />
        </div>
        
        <div class="col col_2 no_mr">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/bsPn_2riXGE" frameborder="0" allowfullscreen></iframe><br />	
        </div>
      
        <div class="col col_2">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/ZwxsXcd6-bY" frameborder="0" allowfullscreen></iframe><br />	
            
        </div>
        
        <div class="col col_2 no_mr">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/lFikR21vBNU" frameborder="0" allowfullscreen></iframe><br />
        </div>
        
        <div class="clear"></div>
        
        <div class="col col_2">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/B23mnZ0vG18" frameborder="0" allowfullscreen></iframe><br />
        </div>
        
        <div class="col col_2 no_mr">
        	<iframe width="300" height="180" src="https://www.youtube.com/embed/TdferalKGys" frameborder="0" allowfullscreen></iframe><br />	
        </div>
       
        <div class="clear"></div>
            
            <div class="templatemo_paging">
                <ul>                    
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>                    
                </ul>
                <div class="clear"></div>
            </div>
            
    </div> <!-- END of main -->
</div> <!-- END of wrapper -->

<div id="templatemo_bottom_wrapper">
	<div id="templatemo_bottom">
	  <div class="clear"></div>
    </div> <!-- END of bottom -->
    
</div> <!-- END of bottom wrapper -->

<div id="templatemo_footer_wrapper">
	<div id="templatemo_footer">
    	 <?php include 'rodape.php' ?>
    </div> <!-- END of footer -->
</div> <!-- END of footer wrapper -->

<!-- templatemo 388 runner -->
<!-- 
Runner Template 
http://www.templatemo.com/preview/templatemo_388_runner 
-->
</body>
</html>
<?php
mysql_free_result($ls_versiculo);
?>
